﻿using Validate.Library;

namespace Authority.Model
{
    /// <summary>
    /// 岗位操作信息
    /// </summary>
    public class PostOperateRequest
    {
        /// <summary>
        /// gCode
        /// </summary>
        public string gCode
        {
            get; set;
        }

        /// <summary>
        ///岗位名称
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 25, Description = "岗位名称")]
        public string sName
        {
            get; set;
        }

        /// <summary>
        /// 简码
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 25, Description = "岗位简码")]
        public string sBrevityCode
        {
            get; set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 200, Description = "备注")]
        public string sContent
        {
            get; set;
        }

        /// <summary>
        /// 排序字段
        /// </summary>
        [Validate(ValidateType.NotEmpty, Regex = ValidateRegex.Number, Description = "排序字段")]
        public double iSort
        {
            get; set;
        }
    }
}
